//package com.chixing.controller;
//import com.chixing.pojo.TravelSights;
//import com.chixing.service.RecommendService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//public class RecommendController {
//    @Autowired
//    private RecommendService recommendService;
//
//    @GetMapping("recommendByCust")
//    public List<TravelSights> getRecommendSightsByCust(@RequestParam(value = "custId",required = false)Integer custId,
//                                                       @RequestParam("num")Integer num){
//        if (custId==null){
//            custId=1001;
//        }
//        return recommendService.getRecommentProductByUser(custId,num);
//    }
//
//    @GetMapping("recommendBySights")
//    public List<TravelSights> getRecommentProductByProduct(@RequestParam("custId")Integer custId,
//                                                       @RequestParam("sightsId") Integer sightsId,
//                                                       @RequestParam("num")Integer num){
//        return recommendService.getRecommentProductBySights(custId,sightsId,num);
//    }
//
//}
